import request from '@/utils/request'

// 分页查询预警规则配置列表
export function findListByPage(data) {
  return request({
    url: '/onm/event/base/warningRule/findListByPage',
    method: 'post',
    data
  })
}

// 查询预警规则配置
export function findByModelId(params) {
  return request({
    url: '/onm/event/base/warningRule/findByModelId',
    method: 'get',
    params
  })
}

// 更新预警规则配置
export function update(data) {
  return request({
    url: '/onm/event/base/warningRule/update',
    method: 'post',
    data
  })
}

// 预警规则激活
export function activate(data) {
  return request({
    url: '/onm/event/base/warningRule/activate',
    method: 'post',
    data
  })
}

// 分页查询高发预警规则配置列表
export function highIncidenceFindListByPage(data) {
  return request({
    url: '/onm/event/base/warningRule/highIncidenceFindListByPage',
    method: 'post',
    data
  })
}

// 分页查询高发预警规则配置列表
export function findWarningModelRuleList(params) {
  return request({
    url: '/onm/event/base/warningRule/findWarningModelRuleList',
    method: 'get',
    params
  })
}


